package cineplanet.modelo;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Set;


/**
 * The persistent class for the tab_sala database table.
 * 
 */
@Entity
@Table(name="tab_sala")
public class TabSala implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TabSalaPK id;

	@Column(name = "SAL_IdEstado")
	private int SAL_IdEstado;

	//bi-directional many-to-one association to TabCartelera
	/*@OneToMany(mappedBy="tabSala")
	private Set<TabCartelera> tabCarteleras;*/

	//bi-directional many-to-one association to TabLocal
    @ManyToOne
	@JoinColumn(name="LOC_IdLocal")
	private TabLocal tabLocal;

    public TabSala() {
    }

	public TabSalaPK getId() {
		return this.id;
	}

	public void setId(TabSalaPK id) {
		this.id = id;
	}
	
	public int getSAL_IdEstado() {
		return this.SAL_IdEstado;
	}

	public void setSAL_IdEstado(int SAL_IdEstado) {
		this.SAL_IdEstado = SAL_IdEstado;
	}

	/*
	public Set<TabCartelera> getTabCarteleras() {
		return this.tabCarteleras;
	}

	public void setTabCarteleras(Set<TabCartelera> tabCarteleras) {
		this.tabCarteleras = tabCarteleras;
	}*/
	
	public TabLocal getTabLocal() {
		return this.tabLocal;
	}

	public void setTabLocal(TabLocal tabLocal) {
		this.tabLocal = tabLocal;
	}
	
}